package com.doubao.doubao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.doubao.doubao.mapper.BmsGroupTrueMapper;
import com.doubao.doubao.model.entity.BmsGroupTrue;
import com.doubao.doubao.model.vo.GroupVO;
import com.doubao.doubao.service.IBmsGroupTrueervice;
import org.springframework.stereotype.Service;
import lombok.extern.slf4j.Slf4j;
import java.util.ArrayList;
import java.util.List;


@Service
public class IBmsGroupTrueImpl extends ServiceImpl<BmsGroupTrueMapper, BmsGroupTrue> implements IBmsGroupTrueervice {
    @Override
//    public BmsGroupTrue getGroupId(String groupid) {
//        return baseMapper.selectOne(new LambdaQueryWrapper<BmsGroupTrue>().eq(BmsGroupTrue::getGroupId, groupid));
//    }

    public List<GroupVO> getGroupId(String groupid) {
        List<GroupVO> lstGroup = new ArrayList<GroupVO>();
        try {
            lstGroup = this.baseMapper.getGroupId(groupid);
        } catch (Exception e) {
            log.error("lstGroup失败");
        }
        return lstGroup;
    }


}
